package com.icart.entities;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;

@Entity
@Table(name = "fi_incomefee", schema = "amp", catalog = "")
public class FiIncomefeeEntity {
    private String incomeid;
    private String sourceid;
    private String tradekind;
    private Long tradeobj;
    private String tradeobjname;
    private String carno;
    private Timestamp tradedate;
    private BigDecimal planfee;
    private BigDecimal realfee;
    private BigDecimal realexefee;
    private Integer feestatus;
    private Long makefeeman;
    private Long getfeeman;
    private Timestamp lastgetfeetime;
    private Integer checkstatus;
    private String billno;
    private Long billman;
    private Timestamp billtime;
    private Long chnid;
    private Integer makefee;
    private Integer creditfee;

    @Id
    @Column(name = "incomeid")
    public String getIncomeid() {
        return incomeid;
    }

    public void setIncomeid(String incomeid) {
        this.incomeid = incomeid;
    }

    @Basic
    @Column(name = "sourceid")
    public String getSourceid() {
        return sourceid;
    }

    public void setSourceid(String sourceid) {
        this.sourceid = sourceid;
    }

    @Basic
    @Column(name = "tradekind")
    public String getTradekind() {
        return tradekind;
    }

    public void setTradekind(String tradekind) {
        this.tradekind = tradekind;
    }

    @Basic
    @Column(name = "tradeobj")
    public Long getTradeobj() {
        return tradeobj;
    }

    public void setTradeobj(Long tradeobj) {
        this.tradeobj = tradeobj;
    }

    @Basic
    @Column(name = "tradeobjname")
    public String getTradeobjname() {
        return tradeobjname;
    }

    public void setTradeobjname(String tradeobjname) {
        this.tradeobjname = tradeobjname;
    }

    @Basic
    @Column(name = "carno")
    public String getCarno() {
        return carno;
    }

    public void setCarno(String carno) {
        this.carno = carno;
    }

    @Basic
    @Column(name = "tradedate")
    public Timestamp getTradedate() {
        return tradedate;
    }

    public void setTradedate(Timestamp tradedate) {
        this.tradedate = tradedate;
    }

    @Basic
    @Column(name = "planfee")
    public BigDecimal getPlanfee() {
        return planfee;
    }

    public void setPlanfee(BigDecimal planfee) {
        this.planfee = planfee;
    }

    @Basic
    @Column(name = "realfee")
    public BigDecimal getRealfee() {
        return realfee;
    }

    public void setRealfee(BigDecimal realfee) {
        this.realfee = realfee;
    }

    @Basic
    @Column(name = "realexefee")
    public BigDecimal getRealexefee() {
        return realexefee;
    }

    public void setRealexefee(BigDecimal realexefee) {
        this.realexefee = realexefee;
    }

    @Basic
    @Column(name = "feestatus")
    public Integer getFeestatus() {
        return feestatus;
    }

    public void setFeestatus(Integer feestatus) {
        this.feestatus = feestatus;
    }

    @Basic
    @Column(name = "makefeeman")
    public Long getMakefeeman() {
        return makefeeman;
    }

    public void setMakefeeman(Long makefeeman) {
        this.makefeeman = makefeeman;
    }

    @Basic
    @Column(name = "getfeeman")
    public Long getGetfeeman() {
        return getfeeman;
    }

    public void setGetfeeman(Long getfeeman) {
        this.getfeeman = getfeeman;
    }

    @Basic
    @Column(name = "lastgetfeetime")
    public Timestamp getLastgetfeetime() {
        return lastgetfeetime;
    }

    public void setLastgetfeetime(Timestamp lastgetfeetime) {
        this.lastgetfeetime = lastgetfeetime;
    }

    @Basic
    @Column(name = "checkstatus")
    public Integer getCheckstatus() {
        return checkstatus;
    }

    public void setCheckstatus(Integer checkstatus) {
        this.checkstatus = checkstatus;
    }

    @Basic
    @Column(name = "billno")
    public String getBillno() {
        return billno;
    }

    public void setBillno(String billno) {
        this.billno = billno;
    }

    @Basic
    @Column(name = "billman")
    public Long getBillman() {
        return billman;
    }

    public void setBillman(Long billman) {
        this.billman = billman;
    }

    @Basic
    @Column(name = "billtime")
    public Timestamp getBilltime() {
        return billtime;
    }

    public void setBilltime(Timestamp billtime) {
        this.billtime = billtime;
    }

    @Basic
    @Column(name = "chnid")
    public Long getChnid() {
        return chnid;
    }

    public void setChnid(Long chnid) {
        this.chnid = chnid;
    }

    @Basic
    @Column(name = "makefee")
    public Integer getMakefee() {
        return makefee;
    }

    public void setMakefee(Integer makefee) {
        this.makefee = makefee;
    }

    @Basic
    @Column(name = "creditfee")
    public Integer getCreditfee() {
        return creditfee;
    }

    public void setCreditfee(Integer creditfee) {
        this.creditfee = creditfee;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FiIncomefeeEntity that = (FiIncomefeeEntity) o;

        if (incomeid != null ? !incomeid.equals(that.incomeid) : that.incomeid != null) return false;
        if (sourceid != null ? !sourceid.equals(that.sourceid) : that.sourceid != null) return false;
        if (tradekind != null ? !tradekind.equals(that.tradekind) : that.tradekind != null) return false;
        if (tradeobj != null ? !tradeobj.equals(that.tradeobj) : that.tradeobj != null) return false;
        if (tradeobjname != null ? !tradeobjname.equals(that.tradeobjname) : that.tradeobjname != null) return false;
        if (carno != null ? !carno.equals(that.carno) : that.carno != null) return false;
        if (tradedate != null ? !tradedate.equals(that.tradedate) : that.tradedate != null) return false;
        if (planfee != null ? !planfee.equals(that.planfee) : that.planfee != null) return false;
        if (realfee != null ? !realfee.equals(that.realfee) : that.realfee != null) return false;
        if (realexefee != null ? !realexefee.equals(that.realexefee) : that.realexefee != null) return false;
        if (feestatus != null ? !feestatus.equals(that.feestatus) : that.feestatus != null) return false;
        if (makefeeman != null ? !makefeeman.equals(that.makefeeman) : that.makefeeman != null) return false;
        if (getfeeman != null ? !getfeeman.equals(that.getfeeman) : that.getfeeman != null) return false;
        if (lastgetfeetime != null ? !lastgetfeetime.equals(that.lastgetfeetime) : that.lastgetfeetime != null)
            return false;
        if (checkstatus != null ? !checkstatus.equals(that.checkstatus) : that.checkstatus != null) return false;
        if (billno != null ? !billno.equals(that.billno) : that.billno != null) return false;
        if (billman != null ? !billman.equals(that.billman) : that.billman != null) return false;
        if (billtime != null ? !billtime.equals(that.billtime) : that.billtime != null) return false;
        if (chnid != null ? !chnid.equals(that.chnid) : that.chnid != null) return false;
        if (makefee != null ? !makefee.equals(that.makefee) : that.makefee != null) return false;
        if (creditfee != null ? !creditfee.equals(that.creditfee) : that.creditfee != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = incomeid != null ? incomeid.hashCode() : 0;
        result = 31 * result + (sourceid != null ? sourceid.hashCode() : 0);
        result = 31 * result + (tradekind != null ? tradekind.hashCode() : 0);
        result = 31 * result + (tradeobj != null ? tradeobj.hashCode() : 0);
        result = 31 * result + (tradeobjname != null ? tradeobjname.hashCode() : 0);
        result = 31 * result + (carno != null ? carno.hashCode() : 0);
        result = 31 * result + (tradedate != null ? tradedate.hashCode() : 0);
        result = 31 * result + (planfee != null ? planfee.hashCode() : 0);
        result = 31 * result + (realfee != null ? realfee.hashCode() : 0);
        result = 31 * result + (realexefee != null ? realexefee.hashCode() : 0);
        result = 31 * result + (feestatus != null ? feestatus.hashCode() : 0);
        result = 31 * result + (makefeeman != null ? makefeeman.hashCode() : 0);
        result = 31 * result + (getfeeman != null ? getfeeman.hashCode() : 0);
        result = 31 * result + (lastgetfeetime != null ? lastgetfeetime.hashCode() : 0);
        result = 31 * result + (checkstatus != null ? checkstatus.hashCode() : 0);
        result = 31 * result + (billno != null ? billno.hashCode() : 0);
        result = 31 * result + (billman != null ? billman.hashCode() : 0);
        result = 31 * result + (billtime != null ? billtime.hashCode() : 0);
        result = 31 * result + (chnid != null ? chnid.hashCode() : 0);
        result = 31 * result + (makefee != null ? makefee.hashCode() : 0);
        result = 31 * result + (creditfee != null ? creditfee.hashCode() : 0);
        return result;
    }
}
